package com.mybook.app.mapper;

import com.mybook.app.core.CommonMapper;
import com.mybook.app.dto.CollectInfoAndBookInfoAndUserInfoDto;
import com.mybook.app.model.BookInfo;
import com.mybook.app.model.CollectInfo;
import com.mybook.app.request.CollectPageRequest;
import com.mybook.app.response.CollectionDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectInfoMapper extends CommonMapper<CollectInfo> {

    CollectInfo findCollectInfoByIdAndBId(@Param("id") String id, @Param("bId") String bId);

   // List<CollectInfo> findCollectInfoById(CollectPageRequest collectPageRequest);

    List<CollectionDetail> findCollectInfoAndBookInfoAndUserInfoById(CollectPageRequest collectPageRequest);


}